package com.easylinkin.linkappapi.positioning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@NoArgsConstructor
@TableName(value = "sbdw_alarm_config")
public class AlarmConfig {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 1:进入,2:离开,3:在外停留,4:在内停留
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 进入、离开、停留时长(分钟)
     */
    @TableField(value = "duration")
    private Integer duration;

    /**
     * 提示信息
     */
    @TableField(value = "tooltip")
    private String tooltip;

    /**
     * 电子围栏ID
     */
    @TableField(value = "fence_id")
    private Integer fenceId;

    public static final String COL_ID = "id";

    public static final String COL_TYPE = "type";

    public static final String COL_DURATION = "duration";

    public static final String COL_TOOLTIP = "tooltip";

    public static final String COL_FENCE_ID = "fence_id";
}